﻿using System.Configuration;

namespace Pro
{
    public class ProEnvironment
    {
        /// <summary>
        ///     获取ConnectionString
        ///     这里可能会需要加密解密操作，所以提取出这个方法
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static string ConnectionString(string name)
        {
            return ConfigurationManager.ConnectionStrings[name].ConnectionString;
        }
    }
}